<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <title>Core example:</title>
    <link rel="stylesheet" type="text/css" href="../example.css" />
  </head>
<body>
<div id="doc4">
  <div class="hd">
    <div class="hd-title">Core util example:</div>
  </div>

  <div class="hd">
<!--更详细的api，请参见 ： <a href="../../jsdoc">../../jsdoc</a>-->
    <h1>code：</h1>
<pre>
&lt;script&gt;

&lt;script src="http://path/to/loader/loader.js"&gt;&lt;/script&gt;
&lt;script&gt;
__.load('core', function() {
  //code here
&lt;/script&gt;
</pre>
  <div id="drageTest" style="position:relative;background:#b3a;cursor:move;width:100px;height:100px;">drag me</div>
  </div>
</div>
<script>
__ = {
  cfg : [[], true, '0']//, '../../../../svn']
};
</script>
<script src="../../src/loader/loader.js"></script>
<script>

__.load('core anim json', function() {
  __.onReady(function(){__.log('du ready (version:' + __.config.ver + ')')});

  __.Io.ajax('./2.txt', {onSuccess:function(o) {__.log(o, 'ajax')}});

  /*
  for (var i=0;i<10;i++) (function() {
    var a = i;
    __.Io.p('./result.php', function(o) {__.log(o, 'p'+a);});
  }());
  */

  __.Drag.bind('drageTest', true, {
    t : 200, r : 200, b : 0, l :0
  }, function(left, top, zone) {
    (new __.Anim('drageTest', 'top', { to : 0, unit : 'px', onOver : function(){
      (new __.Anim('drageTest', 'left', { to : 0, unit : 'px'})).run();
    }})).run();
  });

}, {
  version:'woodsprite'
});
</script>
</body>
</html>
